package com.flying.acls.domain.permission;

import com.flying.acls.model.PermsExpr;
import com.flying.acls.model.PermsType;

public class HttpPermsExpr extends PermsExpr{
    // HTTP related permissions.
    public static final PermsExpr OPTIONS = PermsExprFactory.get(PermsType.HTTP, 1);     // 1
    public static final PermsExpr HEAD = PermsExprFactory.get(PermsType.HTTP, 1 << 1);   // 2
    public static final PermsExpr GET = PermsExprFactory.get(PermsType.HTTP, 1 << 2);    // 4
    public static final PermsExpr POST = PermsExprFactory.get(PermsType.HTTP, 1 << 3);   // 8
    public static final PermsExpr PUT = PermsExprFactory.get(PermsType.HTTP, 1 << 4);    // 16
    public static final PermsExpr DELETE = PermsExprFactory.get(PermsType.HTTP, 1 << 5); // 32
    public static final PermsExpr TRACE = PermsExprFactory.get(PermsType.HTTP, 1 << 6);  // 64
    public static final PermsExpr CONNECT = PermsExprFactory.get(PermsType.HTTP, 1 << 7);// 128
}
